// pages/center/center.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    user:''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({
      user:wx.getStorageSync("userInfo")
    })
  },
  to_call(){
    wx.makePhoneCall({
      phoneNumber: '19991857551'
    })
  },
  // 跳转订单列表页
  goToOrder(e){
    wx.navigateTo({
      url: '/pages/order/order?currentTab=' + e.currentTarget.dataset.currenttab,
    })
  },
  goMemberInfor(){
    wx.navigateTo({
      url: '/pages/memberInfor/memberInfor',
    })
  },
  goBill(){
    wx.navigateTo({
      url: '/pages/bill/bill',
    })
  },
  goMember(){
    wx.navigateTo({
      url: '/pages/member/member',
    })
  },
  gotoAddress(){
    wx.navigateTo({
      url: '/pages/address/address',
    })
  },
  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})